package com.mdx.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 用户
 */
@TableName("t_user")
public class UserBean {
    /**
     * 主键
     */
    @TableId(value = "pk_userId",type = IdType.AUTO)
    private int userId;

    /**
     * 用户名
     */
    @TableField("f_username")
    private String username;

    /**
     * 密码
     */
    @TableField("f_pwd")
    private String pwd;

    /**
     * 等级
     */
    @TableField("f_power")
    private String power;

    /**
     * 真实姓名
     */
    @TableField("f_trueName")
    private String trueName;

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", pwd='" + pwd + '\'' +
                ", power='" + power + '\'' +
                ", trueName='" + trueName + '\'' +
                '}';
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public UserBean() {
    }

    public UserBean(String username, String pwd, String power, String trueName) {
        this.username = username;
        this.pwd = pwd;
        this.power = power;
        this.trueName = trueName;
    }

    public UserBean(String username, String pwd) {
        this.username = username;
        this.pwd = pwd;
    }
}
